package com.ostrich.demomvvm.ui.home

import androidx.lifecycle.LiveData
import com.ostrich.demomvvm.net.BaseResponse
import com.ostrich.demomvvm.ui.home.entity.VideoEntity
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @Author : yaotianxue
 * @Time : On 2023/10/19 09:14
 * @Description : HomeApi
 */
interface HomeApi {
    @GET("/video/findVideos")
    fun findVideos(@Query("currentPage") currentPage:Int,@Query("pageSize") pageSize:Int):LiveData<BaseResponse<MutableList<VideoEntity>>>

    @GET("/video/findVideoByName")
    fun findVideoByName(@Query("keywords") keywords:String):LiveData<BaseResponse<MutableList<VideoEntity>>>

}